package com.huaxin.hxmoduleworkorder.common.annotation.validation;

import com.huaxin.hxmoduleworkorder.common.validator.OrderNotificationTypeValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = OrderNotificationTypeValidator.class)
@Documented
public @interface ValidOrderNotificationType {
    String message() default "无效的工单通知类型，允许值: sms/app_push/email/in_system";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}